//
//  DWHttpClient.m
//  GMNBase
//
//  Created by DarkWorld on 2019/11/28.
//  Copyright © 2019 Mengnan Gong. All rights reserved.
//

#import "DWHttpClient.h"

@implementation DWHttpClient
///// 会员模块Client
+ (DWHttpClient *)sharedMemberManager
{
    static DWHttpClient *MemberhttpManager = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
        //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
        MemberhttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_member]];
        
//        httpManager = [ZSPHTTPClient manager];
//        超时断开
        MemberhttpManager.requestSerializer.timeoutInterval = 30;

        
        MemberhttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
        [MemberhttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

        //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
        MemberhttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
        
        //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
//        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
//        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
//        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
//        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
    });
    
    //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
//    httpManager.securityPolicy = [httpManager customSecurityPolicy];
    
    return MemberhttpManager;
}

/// 社交模块 social
+ (DWHttpClient *)sharedSocialManager
{
    static DWHttpClient *socialhttpManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            socialhttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_social]];
            
    //        httpManager = [ZSPHTTPClient manager];
    //        超时断开
            socialhttpManager.requestSerializer.timeoutInterval = 30;

            
            socialhttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [socialhttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            socialhttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
            
            //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
    //        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
    //        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
    //        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
    //        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
        });
        
        //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
    //    httpManager.securityPolicy = [httpManager customSecurityPolicy];
        
        return socialhttpManager;
}

/// kafka消息消费模块
+ (DWHttpClient *)sharedKafka_consumerManager
{
    static DWHttpClient *kafkahttpManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            kafkahttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_member]];
            
    //        httpManager = [ZSPHTTPClient manager];
    //        超时断开
            kafkahttpManager.requestSerializer.timeoutInterval = 30;

            
            kafkahttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [kafkahttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            kafkahttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
            
            //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
    //        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
    //        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
    //        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
    //        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
        });
        
        //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
    //    httpManager.securityPolicy = [httpManager customSecurityPolicy];
        
        return kafkahttpManager;
}

/// 支付模块 payment
+ (DWHttpClient *)sharedPaymentManager
{
    static DWHttpClient *paymentManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            paymentManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_member]];
            
    //        超时断开
            paymentManager.requestSerializer.timeoutInterval = 30;

            
            paymentManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [paymentManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            paymentManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return paymentManager;
}


///商家模块 seller
+ (DWHttpClient *)sharedSellerManager
{
    static DWHttpClient *sellerManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            sellerManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_member]];
            
    //        超时断开
            sellerManager.requestSerializer.timeoutInterval = 30;

            
            sellerManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [sellerManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            sellerManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return sellerManager;
}


///商铺模块 shop
+ (DWHttpClient *)sharedShopManager
{
    static DWHttpClient *shopManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            shopManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_shop]];
            
    //        超时断开
            shopManager.requestSerializer.timeoutInterval = 30;

            
            shopManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [shopManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            shopManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return shopManager;
}
///商品模块 goods
+ (DWHttpClient *)sharedGoodsManager
{
    static DWHttpClient *goodsManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            goodsManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_goods]];
            
    //        超时断开
            goodsManager.requestSerializer.timeoutInterval = 30;

            
            goodsManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [goodsManager.requestSerializer setValue:@"application/json;application/x-www-form-urlencoded; charset=UTF-8;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            goodsManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return goodsManager;
}
///订单模块 order
+ (DWHttpClient *)sharedOrderManager
{
    static DWHttpClient *orderManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            orderManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_order]];
            
    //        超时断开
            orderManager.requestSerializer.timeoutInterval = 30;

            
            orderManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [orderManager.requestSerializer setValue:@"application/json;application/x-www-form-urlencoded; charset=UTF-8;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            orderManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return orderManager;
}
///工具类模块 tool
+ (DWHttpClient *)sharedToolManager
{
    static DWHttpClient *toolManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            toolManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_tool]];
            
    //        超时断开
            toolManager.requestSerializer.timeoutInterval = 30;

            
            toolManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            [toolManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            toolManager.responseSerializer = [AFHTTPResponseSerializer serializer];
           
        });
        
        return toolManager;
}
///阿里短视频模块
+ (DWHttpClient *)sharedAliVideoManager
{
    static DWHttpClient *aliVideoManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            aliVideoManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_AliVideo]];
            
    //        超时断开
            aliVideoManager.requestSerializer.timeoutInterval = 30;

//            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
//            aliVideoManager.responseSerializer = [AFHTTPResponseSerializer serializer];
//            
//            aliVideoManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"application/*+json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
//            [aliVideoManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            aliVideoManager.requestSerializer = [AFJSONRequestSerializer serializer];



            aliVideoManager.responseSerializer = [AFHTTPResponseSerializer serializer];


            aliVideoManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json", @"text/plain", @"text/html", nil];
          
           
        });
        
        return aliVideoManager;
}

//设置单例
+ (DWHttpClient *)sharedNoBaseUrlManager
{
    static DWHttpClient *noBaseUrlhttpManager = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
        //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
        noBaseUrlhttpManager = [[DWHttpClient alloc]init];
        
//        httpManager = [ZSPHTTPClient manager];
//        超时断开
        noBaseUrlhttpManager.requestSerializer.timeoutInterval = 30;

        
        noBaseUrlhttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
        [noBaseUrlhttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

        //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
        noBaseUrlhttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
        
        //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
//        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
//        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
//        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
//        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
    });
    
    //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
//    httpManager.securityPolicy = [httpManager customSecurityPolicy];
    
    return noBaseUrlhttpManager;
}
///短视频V3 模块
+ (DWHttpClient *)sharedVideoV3Manager
{
    static DWHttpClient *videoV3HttpManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            videoV3HttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_VideoV3]];// 使用 宏 api
//            liveHttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:@"http://live.tcstzg.com/live/"]];//当前外网
    //        httpManager = [ZSPHTTPClient manager];
    //        超时断开
            videoV3HttpManager.requestSerializer.timeoutInterval = 30;

            
            
            [videoV3HttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            videoV3HttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
            videoV3HttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
    //        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
    //        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
    //        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
    //        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
        });
        
        //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
    //    httpManager.securityPolicy = [httpManager customSecurityPolicy];
        
        return videoV3HttpManager;
}
///直播模块 live
+ (DWHttpClient *)sharedLiveManager
{
    static DWHttpClient *liveHttpManager = nil;
        
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            
            //如果设置了 服务器主地址 , 那么后面请求就不用拼接了 .
            //当然我试了下这里加主地址 , 请求时又拼接了主地址 , 也访问成功了.
            liveHttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:ZSPBASEURL_live]];// 使用 宏 api
//            liveHttpManager = [[DWHttpClient alloc]initWithBaseURL:[NSURL URLWithString:@"http://live.tcstzg.com/live/"]];//当前外网
    //        httpManager = [ZSPHTTPClient manager];
    //        超时断开
            liveHttpManager.requestSerializer.timeoutInterval = 30;

            
            
            [liveHttpManager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=UTF-8;application/json;text/html;text/json;text/javascript;text/plain;image/gif;application/x-www-form-urlencoded;charset=UTF-8" forHTTPHeaderField:@"Content-Type"];

            //现在貌似不用写接收类型了，试了试访问@"https://baidu.com",提示不能接收@"text/html"类型 , 我写下述一句 , 和写上面接收类型一样的效果
            liveHttpManager.responseSerializer = [AFHTTPResponseSerializer serializer];
            liveHttpManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript",@"text/plain",@"image/gif",@"application/x-www-form-urlencoded",@"charset=UTF-8",  nil];
            //设置访问请求头 , 请求头是服务器限制用来限制访问而要求客户端添加的一个标识 . 就好比是一个暗号 . 如果服务端没做要求 , 不用加请求头也可以
    //        [httpManager.requestSerializer setValue:@"doAction" forHTTPHeaderField:@"te_method"];
    //        [httpManager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
    //        [httpManager.requestSerializer setValue:@"2.2" forHTTPHeaderField:@"te_version"];
    //        [httpManager.requestSerializer setValue:@"moa" forHTTPHeaderField:@"party_id"];
        });
        
        //设置安全策略 (https) ,数字证书验证,此段具体实现 , 后期更新 ...
    //    httpManager.securityPolicy = [httpManager customSecurityPolicy];
        
        return liveHttpManager;
}
@end
